
<%@ page import="br.edu.ufam.avaliacao.Dimensao" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'dimensao.label', default: 'Dimensao')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="Início"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="Lista de Dimensões" args="[entityName]" /></g:link></span>
            </div>
            <div class="body" style="width: 1000px">
                <h1><g:message code="Visualizar Dimensão" /></h1>
            <g:if test="${flash.message}">
                <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>

                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="dimensao.id.label" default="Id" /></td>

                            <td valign="top" class="value">${fieldValue(bean: dimensaoInstance, field: "id")}</td>

                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="dimensao.ordem.label" default="Ordem" /></td>

                            <td valign="top" class="value">${fieldValue(bean: dimensaoInstance, field: "ordem")}</td>

                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="dimensao.titulo.label" default="Titulo" /></td>

                            <td valign="top" class="value">${fieldValue(bean: dimensaoInstance, field: "titulo")}</td>

                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="dimensao.descricao.label" default="Descricao" /></td>

                            <td valign="top" class="value">${fieldValue(bean: dimensaoInstance, field: "descricao")}</td>

                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="dimensao.indicador.label" default="Indicador" /></td>

                            <td valign="top" style="text-align: left;" class="value">
                                <ul>
                                    <g:each in="${indicadores}" var="i">
                                        <li><g:link controller="indicador" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
                                        </g:each>
                                </ul>
                            </td>

                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </body>
</html>
